NINA-B416 Click Example.
Description
This example demonstrates the use of NINA-B416 Click board by processing data from a connected BT device.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- NINAB416_POWER_UP: Powers up the device, performs a factory reset and reads system information.
- NINAB416_EXAMPLE: Performs a BT terminal example by processing all data from a connected BT device and sending back an adequate response messages.
Additional Function
- static void ninab416_clear_app_buf ( void )
- static void ninab416_log_app_buf ( void )
- static err_t ninab416_process ( ninab416_t *ctx )
- static err_t ninab416_read_response ( ninab416_t *ctx, uint8_t *rsp )
- static err_t ninab416_power_up ( ninab416_t *ctx )
- static err_t ninab416_example ( ninab416_t *ctx )
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the Click board must be paired to exchange messages.
- Author
- Stefan Filipovic